import { UserResult } from "../types/user";
import RequestHttp from "../utils/request";

export  const sendCodeAPI = (params: { mobile: string, isTouTiao: boolean }) => RequestHttp.get<null>(`/v1_0/sms/codes/${params.mobile}`, params)

// 验证码发送到网页上-手机上
export const loginAPI = (data: object) => RequestHttp.post<UserResult>('/v1_0/authorizations', data)